﻿namespace HRM.CORE.REPORT
{
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using HRM.CORE;
    
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptSalary : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private XRLabel chSex;
        private IContainer components;
        private DetailBand Detail;
        private XRLabel dtBirthday;
        private XRLabel dtDate;
        private HRM_SALARY l_Salary;
        private string m_Code;
        private string m_EmployeeCode;
        private int m_Level;
        private int m_Month;
        private int m_Year;
        private PageFooterBand PageFooter;
        private XRPictureBox ptEmployeePhoto;
        private XRPictureBox ptPhoto;
        private TopMarginBand TopMargin;
        private XRLabel txtAddress;
        private XRTableCell txtAdvance;
        private XRTableCell txtAllowance;
        private XRTableCell txtAllowanceInsurance;
        private XRTableCell txtAssignment;
        private XRTableCell txtAssignmentPay;
        private XRTableCell txtBasicSalary;
        private XRLabel txtBirthPlace;
        private XRTableCell txtCoefficientSalary;
        private XRLabel txtCompany;
        private XRLabel txtDepartment;
        private XRLabel txtEmployeeCode;
        private XRLabel txtEmployeeName;
        private XRTableCell txtHealthInsurance;
        private XRTableCell txtIncomeTaxMoney;
        private XRTableCell txtInsurance;
        private XRTableCell txtInsuranceSalary;
        private XRTableCell txtMinusLateEarly;
        private XRTableCell txtMinusMoney;
        private XRLabel txtPosition;
        private XRTableCell txtSalary;
        private XRTableCell txtSalaryMinus;
        private XRTableCell txtSalaryPlus;
        private XRTableCell txtSocialInsurance;
        private XRTableCell txtUnemploymentInsurance;
        private XRTableCell txtWorkSalary;
        private XRLabel xrLabel1;
        private XRLabel xrLabel10;
        private XRLabel xrLabel12;
        private XRLabel xrLabel14;
        private XRLabel xrLabel2;
        private XRLabel xrLabel25;
        private XRLabel xrLabel27;
        private XRLabel xrLabel3;
        private XRLabel xrLabel4;
        private XRLabel xrLabel9;
        private XRTable xrTable1;
        private XRTable xrTable3;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell10;
        private XRTableCell xrTableCell11;
        private XRTableCell xrTableCell12;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell16;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell19;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell20;
        private XRTableCell xrTableCell21;
        private XRTableCell xrTableCell22;
        private XRTableCell xrTableCell23;
        private XRTableCell xrTableCell24;
        private XRTableCell xrTableCell25;
        private XRTableCell xrTableCell26;
        private XRTableCell xrTableCell27;
        private XRTableCell xrTableCell28;
        private XRTableCell xrTableCell29;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell30;
        private XRTableCell xrTableCell31;
        private XRTableCell xrTableCell32;
        private XRTableCell xrTableCell33;
        private XRTableCell xrTableCell34;
        private XRTableCell xrTableCell35;
        private XRTableCell xrTableCell36;
        private XRTableCell xrTableCell37;
        private XRTableCell xrTableCell38;
        private XRTableCell xrTableCell39;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell40;
        private XRTableCell xrTableCell41;
        private XRTableCell xrTableCell42;
        private XRTableCell xrTableCell43;
        private XRTableCell xrTableCell44;
        private XRTableCell xrTableCell46;
        private XRTableCell xrTableCell47;
        private XRTableCell xrTableCell48;
        private XRTableCell xrTableCell49;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell50;
        private XRTableCell xrTableCell51;
        private XRTableCell xrTableCell52;
        private XRTableCell xrTableCell53;
        private XRTableCell xrTableCell54;
        private XRTableCell xrTableCell6;
        private XRTableCell xrTableCell7;
        private XRTableCell xrTableCell8;
        private XRTableCell xrTableCell9;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow10;
        private XRTableRow xrTableRow11;
        private XRTableRow xrTableRow12;
        private XRTableRow xrTableRow13;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow3;
        private XRTableRow xrTableRow4;
        private XRTableRow xrTableRow5;
        private XRTableRow xrTableRow6;
        private XRTableRow xrTableRow7;
        private XRTableRow xrTableRow8;
        private XRTableRow xrTableRow9;

        public rptSalary()
        {
            this.l_Salary = new HRM_SALARY();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_EmployeeCode = "";
            this.components = null;
            this.InitializeComponent();
        }

        public rptSalary(int Month, int Year, string EmployeeCode)
        {
            this.l_Salary = new HRM_SALARY();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_EmployeeCode = "";
            this.components = null;
            this.InitializeComponent();
            this.m_Month = Month;
            this.m_Year = Year;
            this.m_EmployeeCode = EmployeeCode;
        }

        public rptSalary(int Level, string Code, int Month, int Year)
        {
            this.l_Salary = new HRM_SALARY();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_EmployeeCode = "";
            this.components = null;
            this.InitializeComponent();
            this.m_Level = Level;
            this.m_Code = Code;
            this.m_Month = Month;
            this.m_Year = Year;
        }

        private void chSex_BeforePrint(object sender, PrintEventArgs e)
        {
            if (Convert.ToBoolean(this.chSex.Text))
            {
                this.chSex.Text = "Nam";
            }
            else
            {
                this.chSex.Text = "Nữ";
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void dtBirthday_BeforePrint(object sender, PrintEventArgs e)
        {
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrLabel1 = new XRLabel();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell31 = new XRTableCell();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.xrTableCell37 = new XRTableCell();
            this.xrTableCell3 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableRow9 = new XRTableRow();
            this.xrTableCell43 = new XRTableCell();
            this.xrTableCell44 = new XRTableCell();
            this.txtCoefficientSalary = new XRTableCell();
            this.xrTableCell46 = new XRTableCell();
            this.xrTableCell47 = new XRTableCell();
            this.txtHealthInsurance = new XRTableCell();
            this.xrTableRow8 = new XRTableRow();
            this.xrTableCell32 = new XRTableCell();
            this.xrTableCell27 = new XRTableCell();
            this.txtBasicSalary = new XRTableCell();
            this.xrTableCell38 = new XRTableCell();
            this.xrTableCell29 = new XRTableCell();
            this.txtUnemploymentInsurance = new XRTableCell();
            this.xrTableRow12 = new XRTableRow();
            this.xrTableCell16 = new XRTableCell();
            this.xrTableCell24 = new XRTableCell();
            this.txtInsuranceSalary = new XRTableCell();
            this.xrTableCell28 = new XRTableCell();
            this.xrTableCell30 = new XRTableCell();
            this.txtInsurance = new XRTableCell();
            this.xrTableRow7 = new XRTableRow();
            this.xrTableCell33 = new XRTableCell();
            this.xrTableCell23 = new XRTableCell();
            this.txtAllowanceInsurance = new XRTableCell();
            this.xrTableCell39 = new XRTableCell();
            this.xrTableCell25 = new XRTableCell();
            this.txtIncomeTaxMoney = new XRTableCell();
            this.xrTableRow6 = new XRTableRow();
            this.xrTableCell34 = new XRTableCell();
            this.xrTableCell19 = new XRTableCell();
            this.txtAllowance = new XRTableCell();
            this.xrTableCell40 = new XRTableCell();
            this.xrTableCell21 = new XRTableCell();
            this.txtAssignmentPay = new XRTableCell();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell35 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.txtMinusLateEarly = new XRTableCell();
            this.xrTableCell41 = new XRTableCell();
            this.xrTableCell17 = new XRTableCell();
            this.txtAdvance = new XRTableCell();
            this.xrTableRow2 = new XRTableRow();
            this.xrTableCell36 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.txtMinusMoney = new XRTableCell();
            this.xrTableCell42 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.txtSalaryPlus = new XRTableCell();
            this.xrTableRow10 = new XRTableRow();
            this.xrTableCell49 = new XRTableCell();
            this.xrTableCell50 = new XRTableCell();
            this.txtAssignment = new XRTableCell();
            this.xrTableCell52 = new XRTableCell();
            this.xrTableCell53 = new XRTableCell();
            this.txtSalaryMinus = new XRTableCell();
            this.xrTableRow11 = new XRTableRow();
            this.xrTableCell6 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.txtWorkSalary = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.xrTableCell20 = new XRTableCell();
            this.txtSalary = new XRTableCell();
            this.dtDate = new XRLabel();
            this.xrLabel25 = new XRLabel();
            this.txtDepartment = new XRLabel();
            this.txtPosition = new XRLabel();
            this.xrLabel27 = new XRLabel();
            this.xrLabel9 = new XRLabel();
            this.xrLabel10 = new XRLabel();
            this.xrLabel12 = new XRLabel();
            this.dtBirthday = new XRLabel();
            this.xrLabel3 = new XRLabel();
            this.chSex = new XRLabel();
            this.txtEmployeeName = new XRLabel();
            this.txtEmployeeCode = new XRLabel();
            this.txtBirthPlace = new XRLabel();
            this.txtCompany = new XRLabel();
            this.xrLabel2 = new XRLabel();
            this.txtAddress = new XRLabel();
            this.ptPhoto = new XRPictureBox();
            this.xrLabel4 = new XRLabel();
            this.xrTable3 = new XRTable();
            this.xrTableRow3 = new XRTableRow();
            this.xrTableCell7 = new XRTableCell();
            this.xrTableCell8 = new XRTableCell();
            this.xrTableCell9 = new XRTableCell();
            this.xrTableRow4 = new XRTableRow();
            this.xrTableCell10 = new XRTableCell();
            this.xrTableCell11 = new XRTableCell();
            this.xrTableCell12 = new XRTableCell();
            this.ptEmployeePhoto = new XRPictureBox();
            this.xrLabel14 = new XRLabel();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.PageFooter = new PageFooterBand();
            this.xrTableRow13 = new XRTableRow();
            this.xrTableCell22 = new XRTableCell();
            this.xrTableCell26 = new XRTableCell();
            this.txtSocialInsurance = new XRTableCell();
            this.xrTableCell48 = new XRTableCell();
            this.xrTableCell51 = new XRTableCell();
            this.xrTableCell54 = new XRTableCell();
            this.xrTable1.BeginInit();
            this.xrTable3.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { 
                this.xrLabel1, this.xrTable1, this.dtDate, this.xrLabel25, this.txtDepartment, this.txtPosition, this.xrLabel27, this.xrLabel9, this.xrLabel10, this.xrLabel12, this.dtBirthday, this.xrLabel3, this.chSex, this.txtEmployeeName, this.txtEmployeeCode, this.txtBirthPlace, 
                this.txtCompany, this.xrLabel2, this.txtAddress, this.ptPhoto, this.xrLabel4, this.xrTable3, this.ptEmployeePhoto, this.xrLabel14
             });
            this.Detail.HeightF = 512f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrLabel1.LocationFloat = new PointFloat(91.7915f, 113.5f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(54.08316f, 17.70834f);
            this.xrLabel1.Text = "M\x00e3 NV:";
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.LocationFloat = new PointFloat(1.04169f, 199.7083f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1, this.xrTableRow9, this.xrTableRow8, this.xrTableRow12, this.xrTableRow7, this.xrTableRow6, this.xrTableRow5, this.xrTableRow2, this.xrTableRow10, this.xrTableRow11, this.xrTableRow13 });
            this.xrTable1.SizeF = new SizeF(745.9583f, 229.1666f);
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { this.xrTableCell31, this.xrTableCell1, this.xrTableCell2, this.xrTableCell37, this.xrTableCell3, this.xrTableCell4 });
            this.xrTableRow1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.StylePriority.UseFont = false;
            this.xrTableRow1.StylePriority.UseTextAlignment = false;
            this.xrTableRow1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell31.Name = "xrTableCell31";
            this.xrTableCell31.Text = "Stt";
            this.xrTableCell31.Weight = 0.23426119326176054;
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.Text = "T\x00ean loại";
            this.xrTableCell1.Weight = 0.8477371465618565;
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.Text = "Số tiền";
            this.xrTableCell2.Weight = 0.39010209276400931;
            this.xrTableCell37.Name = "xrTableCell37";
            this.xrTableCell37.Text = "Stt";
            this.xrTableCell37.Weight = 0.25595004399817067;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Text = "T\x00ean loại";
            this.xrTableCell3.Weight = 0.88476792045987462;
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.Text = "Số tiền";
            this.xrTableCell4.Weight = 0.3871816029543283;
            this.xrTableRow9.Cells.AddRange(new XRTableCell[] { this.xrTableCell43, this.xrTableCell44, this.txtCoefficientSalary, this.xrTableCell46, this.xrTableCell47, this.txtHealthInsurance });
            this.xrTableRow9.Name = "xrTableRow9";
            this.xrTableRow9.Weight = 1.0;
            this.xrTableCell43.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell43.Name = "xrTableCell43";
            this.xrTableCell43.StylePriority.UseFont = false;
            this.xrTableCell43.StylePriority.UseTextAlignment = false;
            this.xrTableCell43.Text = "1";
            this.xrTableCell43.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell43.Weight = 0.23426117792029763;
            this.xrTableCell44.Name = "xrTableCell44";
            this.xrTableCell44.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell44.StylePriority.UsePadding = false;
            this.xrTableCell44.StylePriority.UseTextAlignment = false;
            this.xrTableCell44.Text = "Hệ số lương";
            this.xrTableCell44.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell44.Weight = 0.84773713122039362;
            this.txtCoefficientSalary.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtCoefficientSalary.Name = "txtCoefficientSalary";
            this.txtCoefficientSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtCoefficientSalary.StylePriority.UseFont = false;
            this.txtCoefficientSalary.StylePriority.UsePadding = false;
            this.txtCoefficientSalary.StylePriority.UseTextAlignment = false;
            this.txtCoefficientSalary.Text = "txtCoefficientSalary";
            this.txtCoefficientSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtCoefficientSalary.Weight = 0.39010197003230596;
            this.xrTableCell46.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell46.Name = "xrTableCell46";
            this.xrTableCell46.StylePriority.UseFont = false;
            this.xrTableCell46.StylePriority.UseTextAlignment = false;
            this.xrTableCell46.Text = "11";
            this.xrTableCell46.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell46.Weight = 0.2559501974127999;
            this.xrTableCell47.Name = "xrTableCell47";
            this.xrTableCell47.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell47.StylePriority.UsePadding = false;
            this.xrTableCell47.StylePriority.UseTextAlignment = false;
            this.xrTableCell47.Text = "Bảo hiểm y tế";
            this.xrTableCell47.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell47.Weight = 0.884767674996468;
            this.txtHealthInsurance.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtHealthInsurance.Name = "txtHealthInsurance";
            this.txtHealthInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtHealthInsurance.StylePriority.UseFont = false;
            this.txtHealthInsurance.StylePriority.UsePadding = false;
            this.txtHealthInsurance.StylePriority.UseTextAlignment = false;
            this.txtHealthInsurance.Text = "txtHealthInsurance";
            this.txtHealthInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtHealthInsurance.Weight = 0.38718184841773495;
            this.xrTableRow8.Cells.AddRange(new XRTableCell[] { this.xrTableCell32, this.xrTableCell27, this.txtBasicSalary, this.xrTableCell38, this.xrTableCell29, this.txtUnemploymentInsurance });
            this.xrTableRow8.Name = "xrTableRow8";
            this.xrTableRow8.Weight = 1.0;
            this.xrTableCell32.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell32.Name = "xrTableCell32";
            this.xrTableCell32.StylePriority.UseFont = false;
            this.xrTableCell32.StylePriority.UseTextAlignment = false;
            this.xrTableCell32.Text = "2";
            this.xrTableCell32.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell32.Weight = 0.23426117792029763;
            this.xrTableCell27.Name = "xrTableCell27";
            this.xrTableCell27.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell27.StylePriority.UsePadding = false;
            this.xrTableCell27.StylePriority.UseTextAlignment = false;
            this.xrTableCell27.Text = "Lương cơ bản";
            this.xrTableCell27.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell27.Weight = 0.84773713122039362;
            this.txtBasicSalary.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtBasicSalary.Name = "txtBasicSalary";
            this.txtBasicSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtBasicSalary.StylePriority.UseFont = false;
            this.txtBasicSalary.StylePriority.UsePadding = false;
            this.txtBasicSalary.StylePriority.UseTextAlignment = false;
            this.txtBasicSalary.Text = "txtBasicSalary";
            this.txtBasicSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtBasicSalary.Weight = 0.39010209276400931;
            this.xrTableCell38.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell38.Name = "xrTableCell38";
            this.xrTableCell38.StylePriority.UseFont = false;
            this.xrTableCell38.StylePriority.UseTextAlignment = false;
            this.xrTableCell38.Text = "12";
            this.xrTableCell38.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell38.Weight = 0.25595007468109654;
            this.xrTableCell29.Name = "xrTableCell29";
            this.xrTableCell29.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell29.StylePriority.UsePadding = false;
            this.xrTableCell29.StylePriority.UseTextAlignment = false;
            this.xrTableCell29.Text = "Bảo hiểm thất nghiệp";
            this.xrTableCell29.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell29.Weight = 0.8847671840696546;
            this.txtUnemploymentInsurance.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtUnemploymentInsurance.Name = "txtUnemploymentInsurance";
            this.txtUnemploymentInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtUnemploymentInsurance.StylePriority.UseFont = false;
            this.txtUnemploymentInsurance.StylePriority.UsePadding = false;
            this.txtUnemploymentInsurance.StylePriority.UseTextAlignment = false;
            this.txtUnemploymentInsurance.Text = "txtUnemploymentInsurance";
            this.txtUnemploymentInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtUnemploymentInsurance.Weight = 0.38718233934454832;
            this.xrTableRow12.Cells.AddRange(new XRTableCell[] { this.xrTableCell16, this.xrTableCell24, this.txtInsuranceSalary, this.xrTableCell28, this.xrTableCell30, this.txtInsurance });
            this.xrTableRow12.Name = "xrTableRow12";
            this.xrTableRow12.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableRow12.StylePriority.UsePadding = false;
            this.xrTableRow12.StylePriority.UseTextAlignment = false;
            this.xrTableRow12.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow12.Weight = 1.0;
            this.xrTableCell16.Name = "xrTableCell16";
            this.xrTableCell16.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.xrTableCell16.StylePriority.UsePadding = false;
            this.xrTableCell16.StylePriority.UseTextAlignment = false;
            this.xrTableCell16.Text = "3";
            this.xrTableCell16.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell16.Weight = 0.23426114723737179;
            this.xrTableCell24.Name = "xrTableCell24";
            this.xrTableCell24.Text = "Lương CB đ\x00f3ng BHXH";
            this.xrTableCell24.Weight = 0.84773706985454189;
            this.txtInsuranceSalary.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtInsuranceSalary.Name = "txtInsuranceSalary";
            this.txtInsuranceSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtInsuranceSalary.StylePriority.UseFont = false;
            this.txtInsuranceSalary.StylePriority.UsePadding = false;
            this.txtInsuranceSalary.StylePriority.UseTextAlignment = false;
            this.txtInsuranceSalary.Text = "txtInsuranceSalary";
            this.txtInsuranceSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtInsuranceSalary.Weight = 0.39010221549571267;
            this.xrTableCell28.Name = "xrTableCell28";
            this.xrTableCell28.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.xrTableCell28.StylePriority.UsePadding = false;
            this.xrTableCell28.StylePriority.UseTextAlignment = false;
            this.xrTableCell28.Text = "13";
            this.xrTableCell28.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell28.Weight = 0.25595004399817067;
            this.xrTableCell30.Name = "xrTableCell30";
            this.xrTableCell30.Text = "BHXH, BHYT, BHTN";
            this.xrTableCell30.Weight = 0.88476693860624789;
            this.txtInsurance.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtInsurance.Name = "txtInsurance";
            this.txtInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtInsurance.StylePriority.UseFont = false;
            this.txtInsurance.StylePriority.UsePadding = false;
            this.txtInsurance.StylePriority.UseTextAlignment = false;
            this.txtInsurance.Text = "txtInsurance";
            this.txtInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtInsurance.Weight = 0.38718258480795509;
            this.xrTableRow7.Cells.AddRange(new XRTableCell[] { this.xrTableCell33, this.xrTableCell23, this.txtAllowanceInsurance, this.xrTableCell39, this.xrTableCell25, this.txtIncomeTaxMoney });
            this.xrTableRow7.Name = "xrTableRow7";
            this.xrTableRow7.Weight = 1.0;
            this.xrTableCell33.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell33.Name = "xrTableCell33";
            this.xrTableCell33.StylePriority.UseFont = false;
            this.xrTableCell33.StylePriority.UseTextAlignment = false;
            this.xrTableCell33.Text = "4";
            this.xrTableCell33.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell33.Weight = 0.23426114723737179;
            this.xrTableCell23.Name = "xrTableCell23";
            this.xrTableCell23.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell23.StylePriority.UsePadding = false;
            this.xrTableCell23.StylePriority.UseTextAlignment = false;
            this.xrTableCell23.Text = "Phụ cấp đ\x00f3ng BHXH";
            this.xrTableCell23.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell23.Weight = 0.84773706985454189;
            this.txtAllowanceInsurance.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtAllowanceInsurance.Name = "txtAllowanceInsurance";
            this.txtAllowanceInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAllowanceInsurance.StylePriority.UseFont = false;
            this.txtAllowanceInsurance.StylePriority.UsePadding = false;
            this.txtAllowanceInsurance.StylePriority.UseTextAlignment = false;
            this.txtAllowanceInsurance.Text = "txtAllowanceInsurance";
            this.txtAllowanceInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtAllowanceInsurance.Weight = 0.39010221549571267;
            this.xrTableCell39.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell39.Name = "xrTableCell39";
            this.xrTableCell39.StylePriority.UseFont = false;
            this.xrTableCell39.StylePriority.UseTextAlignment = false;
            this.xrTableCell39.Text = "14";
            this.xrTableCell39.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell39.Weight = 0.25595004399817067;
            this.xrTableCell25.Name = "xrTableCell25";
            this.xrTableCell25.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell25.StylePriority.UsePadding = false;
            this.xrTableCell25.StylePriority.UseTextAlignment = false;
            this.xrTableCell25.Text = "Tiền đ\x00f3ng thuế";
            this.xrTableCell25.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell25.Weight = 0.88476693860624789;
            this.txtIncomeTaxMoney.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtIncomeTaxMoney.Name = "txtIncomeTaxMoney";
            this.txtIncomeTaxMoney.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtIncomeTaxMoney.StylePriority.UseFont = false;
            this.txtIncomeTaxMoney.StylePriority.UsePadding = false;
            this.txtIncomeTaxMoney.StylePriority.UseTextAlignment = false;
            this.txtIncomeTaxMoney.Text = "txtIncomeTaxMoney";
            this.txtIncomeTaxMoney.TextAlignment = TextAlignment.MiddleRight;
            this.txtIncomeTaxMoney.Weight = 0.38718258480795509;
            this.xrTableRow6.Cells.AddRange(new XRTableCell[] { this.xrTableCell34, this.xrTableCell19, this.txtAllowance, this.xrTableCell40, this.xrTableCell21, this.txtAssignmentPay });
            this.xrTableRow6.Name = "xrTableRow6";
            this.xrTableRow6.Weight = 1.0;
            this.xrTableCell34.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell34.Name = "xrTableCell34";
            this.xrTableCell34.StylePriority.UseFont = false;
            this.xrTableCell34.StylePriority.UseTextAlignment = false;
            this.xrTableCell34.Text = "5";
            this.xrTableCell34.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell34.Weight = 0.23426116257883473;
            this.xrTableCell19.Multiline = true;
            this.xrTableCell19.Name = "xrTableCell19";
            this.xrTableCell19.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell19.StylePriority.UsePadding = false;
            this.xrTableCell19.StylePriority.UseTextAlignment = false;
            this.xrTableCell19.Text = "Phụ cấp lương";
            this.xrTableCell19.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell19.Weight = 0.84773726929355986;
            this.txtAllowance.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtAllowance.Name = "txtAllowance";
            this.txtAllowance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAllowance.StylePriority.UseFont = false;
            this.txtAllowance.StylePriority.UsePadding = false;
            this.txtAllowance.StylePriority.UseTextAlignment = false;
            this.txtAllowance.Text = "txtAllowance";
            this.txtAllowance.TextAlignment = TextAlignment.MiddleRight;
            this.txtAllowance.Weight = 0.390101970032306;
            this.xrTableCell40.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell40.Name = "xrTableCell40";
            this.xrTableCell40.StylePriority.UseFont = false;
            this.xrTableCell40.StylePriority.UseTextAlignment = false;
            this.xrTableCell40.Text = "15";
            this.xrTableCell40.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell40.Weight = 0.25595007468109654;
            this.xrTableCell21.Name = "xrTableCell21";
            this.xrTableCell21.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell21.StylePriority.UsePadding = false;
            this.xrTableCell21.StylePriority.UseTextAlignment = false;
            this.xrTableCell21.Text = "L\x00e3nh trước c\x00f4ng t\x00e1c ph\x00ed";
            this.xrTableCell21.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell21.Weight = 0.884767674996468;
            this.txtAssignmentPay.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtAssignmentPay.Name = "txtAssignmentPay";
            this.txtAssignmentPay.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAssignmentPay.StylePriority.UseFont = false;
            this.txtAssignmentPay.StylePriority.UsePadding = false;
            this.txtAssignmentPay.StylePriority.UseTextAlignment = false;
            this.txtAssignmentPay.Text = "txtAssignmentPay";
            this.txtAssignmentPay.TextAlignment = TextAlignment.MiddleRight;
            this.txtAssignmentPay.Weight = 0.387181848417735;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell35, this.xrTableCell15, this.txtMinusLateEarly, this.xrTableCell41, this.xrTableCell17, this.txtAdvance });
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell35.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell35.Name = "xrTableCell35";
            this.xrTableCell35.StylePriority.UseFont = false;
            this.xrTableCell35.StylePriority.UseTextAlignment = false;
            this.xrTableCell35.Text = "6";
            this.xrTableCell35.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell35.Weight = 0.23426117792029763;
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell15.StylePriority.UsePadding = false;
            this.xrTableCell15.StylePriority.UseTextAlignment = false;
            this.xrTableCell15.Text = "Trừ tiền đi trể, về sớm";
            this.xrTableCell15.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell15.Weight = 0.84773713122039362;
            this.txtMinusLateEarly.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtMinusLateEarly.Name = "txtMinusLateEarly";
            this.txtMinusLateEarly.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtMinusLateEarly.StylePriority.UseFont = false;
            this.txtMinusLateEarly.StylePriority.UsePadding = false;
            this.txtMinusLateEarly.StylePriority.UseTextAlignment = false;
            this.txtMinusLateEarly.Text = "txtMinusLateEarly";
            this.txtMinusLateEarly.TextAlignment = TextAlignment.MiddleRight;
            this.txtMinusLateEarly.Weight = 0.39010197003230596;
            this.xrTableCell41.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell41.Name = "xrTableCell41";
            this.xrTableCell41.StylePriority.UseFont = false;
            this.xrTableCell41.StylePriority.UseTextAlignment = false;
            this.xrTableCell41.Text = "16";
            this.xrTableCell41.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell41.Weight = 0.2559501974127999;
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell17.StylePriority.UsePadding = false;
            this.xrTableCell17.StylePriority.UseTextAlignment = false;
            this.xrTableCell17.Text = "Tạm ứng lương";
            this.xrTableCell17.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell17.Weight = 0.88476816592328122;
            this.txtAdvance.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtAdvance.Name = "txtAdvance";
            this.txtAdvance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAdvance.StylePriority.UseFont = false;
            this.txtAdvance.StylePriority.UsePadding = false;
            this.txtAdvance.StylePriority.UseTextAlignment = false;
            this.txtAdvance.Text = "txtAdvance";
            this.txtAdvance.TextAlignment = TextAlignment.MiddleRight;
            this.txtAdvance.Weight = 0.38718135749092164;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { this.xrTableCell36, this.xrTableCell5, this.txtMinusMoney, this.xrTableCell42, this.xrTableCell13, this.txtSalaryPlus });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.xrTableCell36.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell36.Name = "xrTableCell36";
            this.xrTableCell36.StylePriority.UseFont = false;
            this.xrTableCell36.StylePriority.UseTextAlignment = false;
            this.xrTableCell36.Text = "7";
            this.xrTableCell36.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell36.Weight = 0.23426117792029763;
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell5.StylePriority.UsePadding = false;
            this.xrTableCell5.StylePriority.UseTextAlignment = false;
            this.xrTableCell5.Text = "Trừ tiền ng\x00e0y nghỉ";
            this.xrTableCell5.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell5.Weight = 0.84773700848869027;
            this.txtMinusMoney.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtMinusMoney.Name = "txtMinusMoney";
            this.txtMinusMoney.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtMinusMoney.StylePriority.UseFont = false;
            this.txtMinusMoney.StylePriority.UsePadding = false;
            this.txtMinusMoney.StylePriority.UseTextAlignment = false;
            this.txtMinusMoney.Text = "txtMinusMoney";
            this.txtMinusMoney.TextAlignment = TextAlignment.MiddleRight;
            this.txtMinusMoney.Weight = 0.39010221549571267;
            this.xrTableCell42.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell42.Name = "xrTableCell42";
            this.xrTableCell42.StylePriority.UseFont = false;
            this.xrTableCell42.StylePriority.UseTextAlignment = false;
            this.xrTableCell42.Text = "17";
            this.xrTableCell42.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell42.Weight = 0.25595007468109654;
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell13.StylePriority.UsePadding = false;
            this.xrTableCell13.StylePriority.UseTextAlignment = false;
            this.xrTableCell13.Text = "C\x00e1c khoản thu nhập kh\x00e1c";
            this.xrTableCell13.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell13.Weight = 0.88476669314284118;
            this.txtSalaryPlus.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtSalaryPlus.Name = "txtSalaryPlus";
            this.txtSalaryPlus.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalaryPlus.StylePriority.UseFont = false;
            this.txtSalaryPlus.StylePriority.UsePadding = false;
            this.txtSalaryPlus.StylePriority.UseTextAlignment = false;
            this.txtSalaryPlus.Text = "txtSalaryPlus";
            this.txtSalaryPlus.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalaryPlus.Weight = 0.3871828302713618;
            this.xrTableRow10.Cells.AddRange(new XRTableCell[] { this.xrTableCell49, this.xrTableCell50, this.txtAssignment, this.xrTableCell52, this.xrTableCell53, this.txtSalaryMinus });
            this.xrTableRow10.Name = "xrTableRow10";
            this.xrTableRow10.Weight = 1.0;
            this.xrTableCell49.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell49.Name = "xrTableCell49";
            this.xrTableCell49.StylePriority.UseFont = false;
            this.xrTableCell49.StylePriority.UseTextAlignment = false;
            this.xrTableCell49.Text = "8";
            this.xrTableCell49.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell49.Weight = 0.23426117792029763;
            this.xrTableCell50.Name = "xrTableCell50";
            this.xrTableCell50.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell50.StylePriority.UsePadding = false;
            this.xrTableCell50.StylePriority.UseTextAlignment = false;
            this.xrTableCell50.Text = "C\x00f4ng t\x00e1c ph\x00ed";
            this.xrTableCell50.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell50.Weight = 0.84773700848869027;
            this.txtAssignment.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtAssignment.Name = "txtAssignment";
            this.txtAssignment.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAssignment.StylePriority.UseFont = false;
            this.txtAssignment.StylePriority.UsePadding = false;
            this.txtAssignment.StylePriority.UseTextAlignment = false;
            this.txtAssignment.Text = "txtAssignment";
            this.txtAssignment.TextAlignment = TextAlignment.MiddleRight;
            this.txtAssignment.Weight = 0.39010221549571267;
            this.xrTableCell52.Name = "xrTableCell52";
            this.xrTableCell52.StylePriority.UseTextAlignment = false;
            this.xrTableCell52.Text = "18";
            this.xrTableCell52.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell52.Weight = 0.25595007468109654;
            this.xrTableCell53.Name = "xrTableCell53";
            this.xrTableCell53.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell53.StylePriority.UsePadding = false;
            this.xrTableCell53.StylePriority.UseTextAlignment = false;
            this.xrTableCell53.Text = "C\x00e1c khoản khấu trừ kh\x00e1c";
            this.xrTableCell53.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell53.Weight = 0.88476792045987462;
            this.txtSalaryMinus.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtSalaryMinus.Name = "txtSalaryMinus";
            this.txtSalaryMinus.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalaryMinus.StylePriority.UseFont = false;
            this.txtSalaryMinus.StylePriority.UsePadding = false;
            this.txtSalaryMinus.StylePriority.UseTextAlignment = false;
            this.txtSalaryMinus.Text = "txtSalaryMinus";
            this.txtSalaryMinus.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalaryMinus.Weight = 0.38718160295432835;
            this.xrTableRow11.Cells.AddRange(new XRTableCell[] { this.xrTableCell6, this.xrTableCell14, this.txtWorkSalary, this.xrTableCell18, this.xrTableCell20, this.txtSalary });
            this.xrTableRow11.Name = "xrTableRow11";
            this.xrTableRow11.Weight = 1.0;
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.StylePriority.UseTextAlignment = false;
            this.xrTableCell6.Text = "9";
            this.xrTableCell6.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell6.Weight = 0.23426117792029763;
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell14.StylePriority.UsePadding = false;
            this.xrTableCell14.StylePriority.UseTextAlignment = false;
            this.xrTableCell14.Text = "Tiền lương";
            this.xrTableCell14.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell14.Weight = 0.84773700848869027;
            this.txtWorkSalary.Font = new Font("Microsoft Sans Serif", 9.75f);
            this.txtWorkSalary.Name = "txtWorkSalary";
            this.txtWorkSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtWorkSalary.StylePriority.UseFont = false;
            this.txtWorkSalary.StylePriority.UsePadding = false;
            this.txtWorkSalary.StylePriority.UseTextAlignment = false;
            this.txtWorkSalary.Text = "txtWorkSalary";
            this.txtWorkSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtWorkSalary.Weight = 0.39010221549571267;
            this.xrTableCell18.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.StylePriority.UseFont = false;
            this.xrTableCell18.StylePriority.UseTextAlignment = false;
            this.xrTableCell18.Text = "19";
            this.xrTableCell18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell18.Weight = 0.25595007468109654;
            this.xrTableCell20.Name = "xrTableCell20";
            this.xrTableCell20.Text = " Thực l\x00e3nh";
            this.xrTableCell20.Weight = 0.88476792045987462;
            this.txtSalary.Font = new Font("Microsoft Sans Serif", 9.75f, FontStyle.Bold);
            this.txtSalary.Name = "txtSalary";
            this.txtSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalary.StylePriority.UseFont = false;
            this.txtSalary.StylePriority.UsePadding = false;
            this.txtSalary.StylePriority.UseTextAlignment = false;
            this.txtSalary.Text = "txtSalary";
            this.txtSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalary.Weight = 0.38718160295432835;
            this.dtDate.LocationFloat = new PointFloat(596.5417f, 10.00001f);
            this.dtDate.Name = "dtDate";
            this.dtDate.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.dtDate.SizeF = new SizeF(145.8333f, 17.70833f);
            this.dtDate.StylePriority.UseTextAlignment = false;
            this.dtDate.Text = "Th\x00e1ng 00/0000";
            this.dtDate.TextAlignment = TextAlignment.MiddleRight;
            this.xrLabel25.LocationFloat = new PointFloat(91.7915f, 170.75f);
            this.xrLabel25.Name = "xrLabel25";
            this.xrLabel25.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel25.SizeF = new SizeF(75.29176f, 17.70831f);
            this.xrLabel25.Text = "Ph\x00f2ng ban:";
            this.txtDepartment.Font = new Font("Times New Roman", 9.75f);
            this.txtDepartment.LocationFloat = new PointFloat(168.0833f, 170.75f);
            this.txtDepartment.Name = "txtDepartment";
            this.txtDepartment.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtDepartment.SizeF = new SizeF(183.7082f, 17.70834f);
            this.txtDepartment.StylePriority.UseFont = false;
            this.txtPosition.Font = new Font("Times New Roman", 9.75f);
            this.txtPosition.LocationFloat = new PointFloat(428.2915f, 170.75f);
            this.txtPosition.Name = "txtPosition";
            this.txtPosition.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtPosition.SizeF = new SizeF(318.7085f, 17.70833f);
            this.txtPosition.StylePriority.UseFont = false;
            this.xrLabel27.LocationFloat = new PointFloat(352.7915f, 170.75f);
            this.xrLabel27.Name = "xrLabel27";
            this.xrLabel27.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel27.SizeF = new SizeF(75.29176f, 17.70831f);
            this.xrLabel27.Text = "Chức vụ:";
            this.xrLabel9.LocationFloat = new PointFloat(471f, 113.5f);
            this.xrLabel9.Name = "xrLabel9";
            this.xrLabel9.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel9.SizeF = new SizeF(68.83335f, 17.70833f);
            this.xrLabel9.Text = "Giới t\x00ednh:";
            this.xrLabel10.LocationFloat = new PointFloat(91f, 143f);
            this.xrLabel10.Name = "xrLabel10";
            this.xrLabel10.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel10.SizeF = new SizeF(151.9584f, 17.70834f);
            this.xrLabel10.Text = "Ng\x00e0y, th\x00e1ng, năm sinh:";
            this.xrLabel12.LocationFloat = new PointFloat(371f, 143f);
            this.xrLabel12.Name = "xrLabel12";
            this.xrLabel12.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel12.SizeF = new SizeF(68.83335f, 17.70833f);
            this.xrLabel12.Text = "Nơi sinh:";
            this.dtBirthday.LocationFloat = new PointFloat(244f, 143f);
            this.dtBirthday.Name = "dtBirthday";
            this.dtBirthday.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.dtBirthday.SizeF = new SizeF(126.4583f, 17.70834f);
            this.dtBirthday.BeforePrint += new PrintEventHandler(this.dtBirthday_BeforePrint);
            this.xrLabel3.LocationFloat = new PointFloat(229f, 113.5f);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel3.SizeF = new SizeF(68.83335f, 17.70833f);
            this.xrLabel3.Text = "Họ v\x00e0 t\x00ean:";
            this.chSex.LocationFloat = new PointFloat(540.8333f, 113.5f);
            this.chSex.Name = "chSex";
            this.chSex.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.chSex.SizeF = new SizeF(100f, 17.70833f);
            this.chSex.BeforePrint += new PrintEventHandler(this.chSex_BeforePrint);
            this.txtEmployeeName.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtEmployeeName.LocationFloat = new PointFloat(299.0833f, 113.5f);
            this.txtEmployeeName.Name = "txtEmployeeName";
            this.txtEmployeeName.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtEmployeeName.SizeF = new SizeF(170.9167f, 17.70833f);
            this.txtEmployeeName.StylePriority.UseFont = false;
            this.txtEmployeeCode.BorderColor = Color.Black;
            this.txtEmployeeCode.Font = new Font("Times New Roman", 9.75f);
            this.txtEmployeeCode.LocationFloat = new PointFloat(147.0417f, 113.5f);
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtEmployeeCode.SizeF = new SizeF(80.91669f, 17.70834f);
            this.txtEmployeeCode.StylePriority.UseBorderColor = false;
            this.txtEmployeeCode.StylePriority.UseFont = false;
            this.txtEmployeeCode.StylePriority.UseTextAlignment = false;
            this.txtEmployeeCode.TextAlignment = TextAlignment.TopCenter;
            this.txtEmployeeCode.BeforePrint += new PrintEventHandler(this.txtEmployeeCode_BeforePrint);
            this.txtBirthPlace.LocationFloat = new PointFloat(441.3752f, 143f);
            this.txtBirthPlace.Name = "txtBirthPlace";
            this.txtBirthPlace.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtBirthPlace.SizeF = new SizeF(305.6248f, 17.70833f);
            this.txtCompany.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.txtCompany.LocationFloat = new PointFloat(95.16665f, 10.00001f);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtCompany.SizeF = new SizeF(500.5418f, 17.70833f);
            this.txtCompany.StylePriority.UseFont = false;
            this.txtCompany.Text = "txtCompany";
            this.xrLabel2.LocationFloat = new PointFloat(93.91676f, 31.70827f);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel2.SizeF = new SizeF(51.95789f, 17.70834f);
            this.xrLabel2.Text = "Địa chỉ:";
            this.txtAddress.LocationFloat = new PointFloat(146.8749f, 31.70837f);
            this.txtAddress.Name = "txtAddress";
            this.txtAddress.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtAddress.SizeF = new SizeF(448.8335f, 17.70833f);
            this.txtAddress.Text = "txtAddress";
            this.ptPhoto.LocationFloat = new PointFloat(2.375f, 4.999987f);
            this.ptPhoto.Name = "ptPhoto";
            this.ptPhoto.SizeF = new SizeF(88.54166f, 58.33333f);
            this.ptPhoto.Sizing = ImageSizeMode.ZoomImage;
            this.xrLabel4.Font = new Font("Times New Roman", 16f, FontStyle.Bold);
            this.xrLabel4.LocationFloat = new PointFloat(0.3750006f, 69.54164f);
            this.xrLabel4.Name = "xrLabel4";
            this.xrLabel4.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel4.SizeF = new SizeF(746.625f, 30.25002f);
            this.xrLabel4.StylePriority.UseFont = false;
            this.xrLabel4.StylePriority.UseTextAlignment = false;
            this.xrLabel4.Text = "PHIẾU LƯƠNG NH\x00c2N VI\x00caN";
            this.xrLabel4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTable3.LocationFloat = new PointFloat(0f, 434.8749f);
            this.xrTable3.Name = "xrTable3";
            this.xrTable3.Rows.AddRange(new XRTableRow[] { this.xrTableRow3, this.xrTableRow4 });
            this.xrTable3.SizeF = new SizeF(747f, 62.5f);
            this.xrTableRow3.Cells.AddRange(new XRTableCell[] { this.xrTableCell7, this.xrTableCell8, this.xrTableCell9 });
            this.xrTableRow3.Name = "xrTableRow3";
            this.xrTableRow3.Weight = 1.0;
            this.xrTableCell7.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell7.Name = "xrTableCell7";
            this.xrTableCell7.StylePriority.UseFont = false;
            this.xrTableCell7.StylePriority.UseTextAlignment = false;
            this.xrTableCell7.Text = "Người lập phiếu";
            this.xrTableCell7.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell7.Weight = 1.0;
            this.xrTableCell8.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell8.Name = "xrTableCell8";
            this.xrTableCell8.StylePriority.UseFont = false;
            this.xrTableCell8.StylePriority.UseTextAlignment = false;
            this.xrTableCell8.Text = "Kế to\x00e1n";
            this.xrTableCell8.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell8.Weight = 1.0;
            this.xrTableCell9.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell9.Name = "xrTableCell9";
            this.xrTableCell9.StylePriority.UseFont = false;
            this.xrTableCell9.StylePriority.UseTextAlignment = false;
            this.xrTableCell9.Text = "Gi\x00e1m đốc";
            this.xrTableCell9.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell9.Weight = 1.0;
            this.xrTableRow4.Cells.AddRange(new XRTableCell[] { this.xrTableCell10, this.xrTableCell11, this.xrTableCell12 });
            this.xrTableRow4.Name = "xrTableRow4";
            this.xrTableRow4.Weight = 1.0;
            this.xrTableCell10.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell10.Name = "xrTableCell10";
            this.xrTableCell10.StylePriority.UseFont = false;
            this.xrTableCell10.StylePriority.UseTextAlignment = false;
            this.xrTableCell10.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell10.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell10.Weight = 1.0;
            this.xrTableCell11.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell11.Name = "xrTableCell11";
            this.xrTableCell11.StylePriority.UseFont = false;
            this.xrTableCell11.StylePriority.UseTextAlignment = false;
            this.xrTableCell11.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell11.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell11.Weight = 1.0;
            this.xrTableCell12.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell12.Name = "xrTableCell12";
            this.xrTableCell12.StylePriority.UseFont = false;
            this.xrTableCell12.StylePriority.UseTextAlignment = false;
            this.xrTableCell12.Text = "(K\x00fd v\x00e0 ghi r\x00f5 họ t\x00ean)";
            this.xrTableCell12.TextAlignment = TextAlignment.TopCenter;
            this.xrTableCell12.Weight = 1.0;
            this.ptEmployeePhoto.BorderColor = Color.Gainsboro;
            this.ptEmployeePhoto.Borders = BorderSide.All;
            this.ptEmployeePhoto.LocationFloat = new PointFloat(2.999998f, 113.5f);
            this.ptEmployeePhoto.Name = "ptEmployeePhoto";
            this.ptEmployeePhoto.SizeF = new SizeF(80.91666f, 74.95832f);
            this.ptEmployeePhoto.Sizing = ImageSizeMode.ZoomImage;
            this.ptEmployeePhoto.StylePriority.UseBorderColor = false;
            this.ptEmployeePhoto.StylePriority.UseBorders = false;
            this.ptEmployeePhoto.BeforePrint += new PrintEventHandler(this.ptEmployeePhoto_BeforePrint);
            this.xrLabel14.ForeColor = Color.Silver;
            this.xrLabel14.LocationFloat = new PointFloat(2.999998f, 144f);
            this.xrLabel14.Name = "xrLabel14";
            this.xrLabel14.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel14.SizeF = new SizeF(80.91666f, 17.70833f);
            this.xrLabel14.StylePriority.UseForeColor = false;
            this.xrLabel14.StylePriority.UseTextAlignment = false;
            this.xrLabel14.Text = "Ảnh";
            this.xrLabel14.TextAlignment = TextAlignment.MiddleCenter;
            this.TopMargin.HeightF = 20f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 20f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.PageFooter.HeightF = 0f;
            this.PageFooter.Name = "PageFooter";
            this.xrTableRow13.Cells.AddRange(new XRTableCell[] { this.xrTableCell22, this.xrTableCell26, this.txtSocialInsurance, this.xrTableCell48, this.xrTableCell51, this.xrTableCell54 });
            this.xrTableRow13.Name = "xrTableRow13";
            this.xrTableRow13.Weight = 1.0;
            this.xrTableCell22.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell22.Name = "xrTableCell22";
            this.xrTableCell22.StylePriority.UseFont = false;
            this.xrTableCell22.StylePriority.UseTextAlignment = false;
            this.xrTableCell22.Text = "10";
            this.xrTableCell22.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell22.Weight = 0.23426117792029763;
            this.xrTableCell26.Name = "xrTableCell26";
            this.xrTableCell26.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell26.StylePriority.UsePadding = false;
            this.xrTableCell26.StylePriority.UseTextAlignment = false;
            this.xrTableCell26.Text = "Bảo hiểm x\x00e3 hội";
            this.xrTableCell26.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell26.Weight = 0.84773700848869027;
            this.txtSocialInsurance.Name = "txtSocialInsurance";
            this.txtSocialInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSocialInsurance.StylePriority.UsePadding = false;
            this.txtSocialInsurance.StylePriority.UseTextAlignment = false;
            this.txtSocialInsurance.Text = "txtSocialInsurance";
            this.txtSocialInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtSocialInsurance.Weight = 0.39010221549571267;
            this.xrTableCell48.Font = new Font("Times New Roman", 9.75f, FontStyle.Italic);
            this.xrTableCell48.Name = "xrTableCell48";
            this.xrTableCell48.StylePriority.UseFont = false;
            this.xrTableCell48.StylePriority.UseTextAlignment = false;
            this.xrTableCell48.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell48.Weight = 0.25595007468109654;
            this.xrTableCell51.Name = "xrTableCell51";
            this.xrTableCell51.Weight = 0.88476792045987462;
            this.xrTableCell54.Name = "xrTableCell54";
            this.xrTableCell54.Weight = 0.38718160295432835;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.PageFooter });
            base.Landscape = true;
            base.Margins = new Margins(40, 40, 20, 20);
            base.PageHeight = 0x247;
            base.PageWidth = 0x33b;
            base.PaperKind = PaperKind.A5;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptListEmployee_BeforePrint);
            this.xrTable1.EndInit();
            this.xrTable3.EndInit();
            this.EndInit();
        }

        private void LoadAllData()
        {
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
            DataSet set = new DataSet();
            DataTable table = new DataTable();
            table = this.l_Salary.GetList(this.m_Level, this.m_Code, hrm_salary_tablelist.SalaryTableListID);
            set.Tables.Add(table);
            base.DataSource = set;
            this.txtEmployeeCode.DataBindings.Add("Text", base.DataSource, "EmployeeCode");
            this.txtCoefficientSalary.DataBindings.Add("Text", base.DataSource, "CoefficientSalary");
            this.txtBasicSalary.DataBindings.Add("Text", base.DataSource, "BasicSalary", "{0:##,##0}");
            this.txtInsuranceSalary.DataBindings.Add("Text", base.DataSource, "InsuranceSalary", "{0:##,##0}");
            this.txtAllowanceInsurance.DataBindings.Add("Text", base.DataSource, "AllowanceInsurance", "{0:##,##0}");
            this.txtAllowance.DataBindings.Add("Text", base.DataSource, "Allowance", "{0:##,##0}");
            this.txtMinusLateEarly.DataBindings.Add("Text", base.DataSource, "MinusLateEarly", "{0:##,##0}");
            this.txtMinusMoney.DataBindings.Add("Text", base.DataSource, "MinusMoney", "{0:##,##0}");
            this.txtWorkSalary.DataBindings.Add("Text", base.DataSource, "WorkSalary", "{0:##,##0}");
            this.txtSocialInsurance.DataBindings.Add("Text", base.DataSource, "SocialInsurance", "{0:##,##0}");
            this.txtHealthInsurance.DataBindings.Add("Text", base.DataSource, "HealthInsurance", "{0:##,##0}");
            this.txtUnemploymentInsurance.DataBindings.Add("Text", base.DataSource, "UnemploymentInsurance", "{0:##,##0}");
            this.txtInsurance.DataBindings.Add("Text", base.DataSource, "Insurance", "{0:##,##0}");
            this.txtIncomeTaxMoney.DataBindings.Add("Text", base.DataSource, "IncomeTaxMoney", "{0:##,##0}");
            this.txtAdvance.DataBindings.Add("Text", base.DataSource, "Advance", "{0:##,##0}");
            this.txtAssignment.DataBindings.Add("Text", base.DataSource, "Assignment", "{0:##,##0}");
            this.txtAssignmentPay.DataBindings.Add("Text", base.DataSource, "AssignmentPay", "{0:##,##0}");
            this.txtSalaryPlus.DataBindings.Add("Text", base.DataSource, "SalaryPlus", "{0:##,##0}");
            this.txtSalaryMinus.DataBindings.Add("Text", base.DataSource, "SalaryMinus", "{0:##,##0}");
            this.txtSalary.DataBindings.Add("Text", base.DataSource, "Salary", "{0:##,##0}");
        }

        private void LoadData()
        {
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
            this.l_Salary.Get(hrm_salary_tablelist.SalaryTableListID, this.m_EmployeeCode);
            this.txtEmployeeCode.Text = this.l_Salary.EmployeeCode;
            this.txtCoefficientSalary.Text = this.l_Salary.CoefficientSalary.ToString();
            this.txtBasicSalary.Text = this.l_Salary.BasicSalary.ToString("#,0");
            this.txtInsuranceSalary.Text = this.l_Salary.InsuranceSalary.ToString("#,0");
            this.txtAllowanceInsurance.Text = this.l_Salary.AllowanceInsurance.ToString("#,0");
            this.txtAllowance.Text = this.l_Salary.Allowance.ToString("#,0");
            this.txtMinusLateEarly.Text = this.l_Salary.MinusLateEarly.ToString("#,0");
            this.txtMinusMoney.Text = this.l_Salary.MinusMoney.ToString("#,0");
            this.txtWorkSalary.Text = this.l_Salary.WorkSalary.ToString("#,0");
            this.txtSocialInsurance.Text = this.l_Salary.SocialInsurance.ToString("#,0");
            this.txtHealthInsurance.Text = this.l_Salary.HealthInsurance.ToString("#,0");
            this.txtUnemploymentInsurance.Text = this.l_Salary.UnemploymentInsurance.ToString("#,0");
            this.txtInsurance.Text = this.l_Salary.Insurance.ToString("#,0");
            this.txtIncomeTaxMoney.Text = this.l_Salary.IncomeTaxMoney.ToString("#,0");
            this.txtAssignment.Text = this.l_Salary.Assignment.ToString("#,0");
            this.txtAssignmentPay.Text = this.l_Salary.AssignmentPay.ToString("#,0");
            this.txtAdvance.Text = this.l_Salary.Advance.ToString("#,0");
            this.txtSalaryPlus.Text = this.l_Salary.SalaryPlus.ToString("#,0");
            this.txtSalaryMinus.Text = this.l_Salary.SalaryMinus.ToString("#,0");
            this.txtSalary.Text = this.l_Salary.Salary.ToString("#,0");
        }

        private void ptEmployeePhoto_BeforePrint(object sender, PrintEventArgs e)
        {
            HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
            hrm_employee.Get(this.txtEmployeeCode.Text);
            this.ptEmployeePhoto.Image = hrm_employee.Photo;
        }

        private void rptListEmployee_BeforePrint(object sender, PrintEventArgs e)
        {
            this.dtDate.Text = "Th\x00e1ng " + this.m_Month.ToString() + "/" + this.m_Year.ToString();
            if (this.m_EmployeeCode == "")
            {
                this.LoadAllData();
            }
            else
            {
                this.LoadData();
            }
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";//MyInfo.Company.ToUpper();
                this.txtAddress.Text = "";//MyInfo.Address;
                this.ptPhoto.Image = null;//MyInfo.Photo;
            }
        }

        private void txtEmployeeCode_BeforePrint(object sender, PrintEventArgs e)
        {
            HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
            hrm_employee.Get(this.txtEmployeeCode.Text);
            this.txtEmployeeName.Text = hrm_employee.FirstName + " " + hrm_employee.LastName;
            this.dtBirthday.Text = hrm_employee.BirthdayDay.ToString() + "/" + hrm_employee.BirthdayMonth.ToString() + "/" + hrm_employee.BirthdayYear.ToString();
            this.txtBirthPlace.Text = hrm_employee.BirthPlace;
            this.chSex.Text = hrm_employee.Sex.ToString();
            this.txtDepartment.Text = hrm_employee.DepartmentName;
            this.txtPosition.Text = hrm_employee.Position;
        }
    }
}

